from .models import *
from rest_framework.serializers import ModelSerializer
class CourseSer(ModelSerializer):
    class Meta:
        model = Course
        fields = '__all__'
class SclassSer(ModelSerializer):
    courses = CourseSer(read_only=True,many=True)
    class Meta:
        model = Sclass
        fields = '__all__'
class StuSer(ModelSerializer):
    class Meta:
        model = Stu
        fields = '__all__'
